export class WenXinReturn {
  id: string = ""
  object: string = ""
  created: string = ""
  result: string = ""
  is_truncated: Boolean = false
  need_clear_history: Boolean = false
  finish_reason: string = ""
  usage: Usage = new Usage()
}

export class Usage {
  prompt_tokens: number = 0
  completion_tokens: number = 0
  total_tokens: number = 0
}

export class MsgOutput {
  content: string = ""
}

export class MsgInput {
  id: string = ""
  role: string = ""
  content: string = ""
}


// {
//     "id": "as-n4tcximd10",
//     "object": "chat.completion",
//     "created": 1704889009,
//     "result": "您好，我是文心一言，英文名是ERNIE Bot。我能够与人对话互动，回答问题，协助创作，高效便捷地帮助人们获取信息、知识和灵感。",
//     "is_truncated": false,
//     "need_clear_history": false,
//     "finish_reason": "normal",
//     "usage": {
//         "prompt_tokens": 2,
//         "completion_tokens": 33,
//         "total_tokens": 35
//     }
// }